import QtQuick 2.0
import "../components"

Rectangle{          // 本地文件

    id: root
    property string title: "本地文件"
    property string tip: "注：仅限wlk格式文件"
    property string icon: "qrc:/picture/device_item.png"

    signal released()



    height: 240*dp
    width: 380*dp
    radius: 8*dp
    Image {
        anchors.fill: parent
        source: "qrc:/picture/dashBorder.png"
    }
    Image {
        width: 64*dp
        height: 64*dp
        anchors.horizontalCenter: parent.horizontalCenter
        y: 30*dp
        source: icon
    }
    Text {
        text: qsTr(title)
        font.bold: true
        font.pixelSize: config.fontsize + 3*dp
        anchors.horizontalCenter: parent.horizontalCenter
        y: 105*dp
    }Text {
        text: qsTr(tip)
        font.pixelSize: config.fontsize
        anchors.horizontalCenter: parent.horizontalCenter
        y: 135*dp
    }
    PushButton{
        title: "上传文件"
        defaultMode2: true
        anchors.horizontalCenter: parent.horizontalCenter
        y: 170*dp
    }
    MouseArea{
        anchors.fill: parent
        hoverEnabled: true
        cursorShape: Qt.PointingHandCursor
        onEntered: {
            root.border.color = "#1677FF"
        }onExited: {
            root.border.color = "transparent"
        }onReleased: {
            root.released()
        }
    }
}
